home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20030409-20031118 / 000312_nugulus@netscape.net_Mon Sep 29 11:13:27 EDT 2003.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  55 lines

  1. Article: 14557 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!newsfeed.mathworks.com!news-out.cwix.com!newsfeed.cwix.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr11.news.prodigy.com.POSTED!not-for-mail
  3. From: Jun Zhang <nugulus@netscape.net>
  4. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1
  5. X-Accept-Language: en-us, en
  6. MIME-Version: 1.0
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: Array assignment problem
  9. References: <Eu1db.229$3I6.194268280@newssvr11.news.prodigy.com> <bl4am6$7m1$1@sesame.cc.columbia.edu>
  10. In-Reply-To: <bl4am6$7m1$1@sesame.cc.columbia.edu>
  11. Content-Type: text/plain; charset=us-ascii; format=flowed
  12. Content-Transfer-Encoding: 7bit
  13. Lines: 31
  14. Message-ID: <5MXdb.664$Rg3.532194417@newssvr11.news.prodigy.com>
  15. NNTP-Posting-Host: 159.66.144.147
  16. X-Complaints-To: abuse@prodigy.net
  17. X-Trace: newssvr11.news.prodigy.com 1064847489 ST000 159.66.144.147 (Mon, 29 Sep 2003 10:58:09 EDT)
  18. NNTP-Posting-Date: Mon, 29 Sep 2003 10:58:09 EDT
  19. Organization: SBC http://yahoo.sbc.com
  20. X-UserInfo1: FKPO@MC@@S@OR\TY[BHN^_TDFZ\@@FXLM@TDOCQDJ@_@FN\CDVW[AKK[J\]^HVKHG^EWZHBLO^[\NH_AZFWGN^\DHNVMX_DHHX[FSQKBOTS@@BP^]C@RHS_AGDDC[AJM_T[GZNRNZAY]GNCPBDYKOLK^_CZFWPGHZIXW@C[AFKBBQS@E@DAZ]VDFUNTQQ]FN
  21. Date: Mon, 29 Sep 2003 14:58:09 GMT
  22. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14557
  23.  
  24. The assignment
  25. \%1 = \&a[1]
  26. didn't take effect, since
  27. echo "\%1"
  28. give me nothing. I intended to pass \%1 as argument to DELIVER.
  29. Please shed me some light.
  30.  
  31. Jun
  32.  
  33.  
  34. Frank da Cruz wrote:
  35. > In article <Eu1db.229$3I6.194268280@newssvr11.news.prodigy.com>,
  36. > Jun Zhang  <nugulus@netscape.net> wrote:
  37. > : fopen /read \%c phonelist
  38. > : while true {
  39. > : fread /line \%c record
  40. > : echo "The line read in is \m(record)"    ; Got "5035 rootpass", fine.
  41. > : void \fsplit(\m(record),&a)
  42. > : echo "Phonenumber is \&a[0]"             ; Got "phonenumber is 3",
  43. > :                                           ;  instead of 5035.
  44. > : What's wrong?
  45. > : 
  46. > As explained in the documentation, the 0th element of an array contains
  47. > the number of elements in the array.  The data elements begin at 1.
  48. > You can see what's in an array with "show array", in this case:
  49. >   show array a
  50. > - Frank
  51.  
  52.